Optimal. Leaf size=145 \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right ) \left (6 a^2 b e-5 a^3 f-8 a b^2 d+16 b^3 c\right )}{16 b^{7/2}}+\frac{x \sqrt{a+b x^2} \left (5 a^2 f-6 a b e+8 b^2 d\right )}{16 b^3}+\frac{x^3 \sqrt{a+b x^2} (6 b e-5 a f)}{24 b^2}+\frac{f x^5 \sqrt{a+b x^2}}{6 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.119289, antiderivative size = 145, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.172, Rules used = {1815, 1159, 388, 217, 206} \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right ) \left (6 a^2 b e-5 a^3 f-8 a b^2 d+16 b^3 c\right )}{16 b^{7/2}}+\frac{x \sqrt{a+b x^2} \left (5 a^2 f-6 a b e+8 b^2 d\right )}{16 b^3}+\frac{x^3 \sqrt{a+b x^2} (6 b e-5 a f)}{24 b^2}+\frac{f x^5 \sqrt{a+b x^2}}{6 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1815
Rule 1159
Rule 388
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{c+d x^2+e x^4+f x^6}{\sqrt{a+b x^2}} \, dx &=\frac{f x^5 \sqrt{a+b x^2}}{6 b}+\frac{\int \frac{6 b c+6 b d x^2+(6 b e-5 a f) x^4}{\sqrt{a+b x^2}} \, dx}{6 b}\\ &=\frac{(6 b e-5 a f) x^3 \sqrt{a+b x^2}}{24 b^2}+\frac{f x^5 \sqrt{a+b x^2}}{6 b}+\frac{\int \frac{24 b^2 c+3 \left (8 b^2 d-6 a b e+5 a^2 f\right ) x^2}{\sqrt{a+b x^2}} \, dx}{24 b^2}\\ &=\frac{\left (8 b^2 d-6 a b e+5 a^2 f\right ) x \sqrt{a+b x^2}}{16 b^3}+\frac{(6 b e-5 a f) x^3 \sqrt{a+b x^2}}{24 b^2}+\frac{f x^5 \sqrt{a+b x^2}}{6 b}-\frac{1}{16} \left (-16 c+\frac{a \left (8 b^2 d-6 a b e+5 a^2 f\right )}{b^3}\right ) \int \frac{1}{\sqrt{a+b x^2}} \, dx\\ &=\frac{\left (8 b^2 d-6 a b e+5 a^2 f\right ) x \sqrt{a+b x^2}}{16 b^3}+\frac{(6 b e-5 a f) x^3 \sqrt{a+b x^2}}{24 b^2}+\frac{f x^5 \sqrt{a+b x^2}}{6 b}-\frac{1}{16} \left (-16 c+\frac{a \left (8 b^2 d-6 a b e+5 a^2 f\right )}{b^3}\right ) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{x}{\sqrt{a+b x^2}}\right )\\ &=\frac{\left (8 b^2 d-6 a b e+5 a^2 f\right ) x \sqrt{a+b x^2}}{16 b^3}+\frac{(6 b e-5 a f) x^3 \sqrt{a+b x^2}}{24 b^2}+\frac{f x^5 \sqrt{a+b x^2}}{6 b}+\frac{\left (16 c-\frac{a \left (8 b^2 d-6 a b e+5 a^2 f\right )}{b^3}\right ) \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right )}{16 \sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.108642, size = 118, normalized size = 0.81 \[ \frac{3 \tanh ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a+b x^2}}\right ) \left (6 a^2 b e-5 a^3 f-8 a b^2 d+16 b^3 c\right )+\sqrt{b} x \sqrt{a+b x^2} \left (15 a^2 f-2 a b \left (9 e+5 f x^2\right )+4 b^2 \left (6 d+3 e x^2+2 f x^4\right )\right )}{48 b^{7/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 203, normalized size = 1.4 \begin{align*}{\frac{f{x}^{5}}{6\,b}\sqrt{b{x}^{2}+a}}-{\frac{5\,af{x}^{3}}{24\,{b}^{2}}\sqrt{b{x}^{2}+a}}+{\frac{5\,{a}^{2}fx}{16\,{b}^{3}}\sqrt{b{x}^{2}+a}}-{\frac{5\,{a}^{3}f}{16}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{7}{2}}}}+{\frac{e{x}^{3}}{4\,b}\sqrt{b{x}^{2}+a}}-{\frac{3\,aex}{8\,{b}^{2}}\sqrt{b{x}^{2}+a}}+{\frac{3\,{a}^{2}e}{8}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{5}{2}}}}+{\frac{dx}{2\,b}\sqrt{b{x}^{2}+a}}-{\frac{ad}{2}\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){b}^{-{\frac{3}{2}}}}+{c\ln \left ( x\sqrt{b}+\sqrt{b{x}^{2}+a} \right ){\frac{1}{\sqrt{b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.52251, size = 581, normalized size = 4.01 \begin{align*} \left [-\frac{3 \,{\left (16 \, b^{3} c - 8 \, a b^{2} d + 6 \, a^{2} b e - 5 \, a^{3} f\right )} \sqrt{b} \log \left (-2 \, b x^{2} + 2 \, \sqrt{b x^{2} + a} \sqrt{b} x - a\right ) - 2 \,{\left (8 \, b^{3} f x^{5} + 2 \,{\left (6 \, b^{3} e - 5 \, a b^{2} f\right )} x^{3} + 3 \,{\left (8 \, b^{3} d - 6 \, a b^{2} e + 5 \, a^{2} b f\right )} x\right )} \sqrt{b x^{2} + a}}{96 \, b^{4}}, -\frac{3 \,{\left (16 \, b^{3} c - 8 \, a b^{2} d + 6 \, a^{2} b e - 5 \, a^{3} f\right )} \sqrt{-b} \arctan \left (\frac{\sqrt{-b} x}{\sqrt{b x^{2} + a}}\right ) -{\left (8 \, b^{3} f x^{5} + 2 \,{\left (6 \, b^{3} e - 5 \, a b^{2} f\right )} x^{3} + 3 \,{\left (8 \, b^{3} d - 6 \, a b^{2} e + 5 \, a^{2} b f\right )} x\right )} \sqrt{b x^{2} + a}}{48 \, b^{4}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 12.1099, size = 362, normalized size = 2.5 \begin{align*} \frac{5 a^{\frac{5}{2}} f x}{16 b^{3} \sqrt{1 + \frac{b x^{2}}{a}}} - \frac{3 a^{\frac{3}{2}} e x}{8 b^{2} \sqrt{1 + \frac{b x^{2}}{a}}} + \frac{5 a^{\frac{3}{2}} f x^{3}}{48 b^{2} \sqrt{1 + \frac{b x^{2}}{a}}} + \frac{\sqrt{a} d x \sqrt{1 + \frac{b x^{2}}{a}}}{2 b} - \frac{\sqrt{a} e x^{3}}{8 b \sqrt{1 + \frac{b x^{2}}{a}}} - \frac{\sqrt{a} f x^{5}}{24 b \sqrt{1 + \frac{b x^{2}}{a}}} - \frac{5 a^{3} f \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{16 b^{\frac{7}{2}}} + \frac{3 a^{2} e \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{8 b^{\frac{5}{2}}} - \frac{a d \operatorname{asinh}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{2 b^{\frac{3}{2}}} + c \left (\begin{cases} \frac{\sqrt{- \frac{a}{b}} \operatorname{asin}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b < 0 \\\frac{\sqrt{\frac{a}{b}} \operatorname{asinh}{\left (x \sqrt{\frac{b}{a}} \right )}}{\sqrt{a}} & \text{for}\: a > 0 \wedge b > 0 \\\frac{\sqrt{- \frac{a}{b}} \operatorname{acosh}{\left (x \sqrt{- \frac{b}{a}} \right )}}{\sqrt{- a}} & \text{for}\: b > 0 \wedge a < 0 \end{cases}\right ) + \frac{e x^{5}}{4 \sqrt{a} \sqrt{1 + \frac{b x^{2}}{a}}} + \frac{f x^{7}}{6 \sqrt{a} \sqrt{1 + \frac{b x^{2}}{a}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.19111, size = 174, normalized size = 1.2 \begin{align*} \frac{1}{48} \,{\left (2 \,{\left (\frac{4 \, f x^{2}}{b} - \frac{5 \, a b^{3} f - 6 \, b^{4} e}{b^{5}}\right )} x^{2} + \frac{3 \,{\left (8 \, b^{4} d + 5 \, a^{2} b^{2} f - 6 \, a b^{3} e\right )}}{b^{5}}\right )} \sqrt{b x^{2} + a} x - \frac{{\left (16 \, b^{3} c - 8 \, a b^{2} d - 5 \, a^{3} f + 6 \, a^{2} b e\right )} \log \left ({\left | -\sqrt{b} x + \sqrt{b x^{2} + a} \right |}\right )}{16 \, b^{\frac{7}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]